<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="../layui/css/layui.css" th:href="@{/layui/css/layui.css}" />
</head>
<body>
<!--上传数据，添加操作  使用form表单-->
<form class="layui-form" action="" style="margin: auto;width: 400px;margin-top: 5%">
    <div class="layui-form-item" style="margin: auto;width: 300px">
            <!--后台通过name来映射值在实体类中  必须与实体类中的属性名一样-->
            <!--placeholder 输入框的提示信息-->
            <input type="text" name="videoDesc" autocomplete="off" placeholder="请输入视频发布名称" class="layui-input">
    </div>

    <div class="layui-form-item layui-form-text" style="margin: auto;width: 300px;margin-top: 15px">
            <textarea name="remark" placeholder="请输入视频描述" class="layui-textarea"></textarea>
    </div>

    <div class="layui-form-item" style="margin: auto;margin-top: 15px">
        <div class="layui-input-inline" style="width: 90px;margin-left: 50px">
            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" id="upVideo">上传视频</button>
        </div>
        <input type="text" name="videoPath" autocomplete="off" placeholder="上传视频的名称"
               class="layui-input layui-btn-disabled" style="width: 200px;margin-left: 0px" id="videoPath">
    </div>

    <div class="layui-form-item" style="margin: auto;margin-top: 15px">
        <div class="layui-upload">
            <div class="layui-input-inline" style="width: 90px;margin-left: 50px">
                <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" id="upImg">上传图片</button>
            </div>
            <input type="text" name="coverPath" id="coverPath" required  lay-verify="required" style="width: 200px;margin-left: 0px" placeholder="图片名称" autocomplete="off" class="layui-input layui-btn-disabled">
            <div class="layui-upload-list">
                <img class="layui-upload-img" id="displayImg">
                <p id="demoText"></p>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <!--type：submit  提交类型按钮，有默认的提交方式-->
            <button type="submit" class="layui-btn" lay-submit="" lay-filter="submit">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
<script src="../layui/layui.js" th:src="@{/layui/layui.js}"></script>
<script src="../js/videoJs/video.js" th:src="@{/js/videoJs/video.js}"></script>
<script src="../js/videoJs/addVideo.js" th:src="@{/js/videoJs/addVideo.js}"></script>
</html>